//package com.sky.security;
//
//import com.fasterxml.jackson.core.JsonGenerator;
//import com.fasterxml.jackson.databind.JsonSerializer;
//import com.fasterxml.jackson.databind.SerializerProvider;
//import org.springframework.security.core.GrantedAuthority;
//
//import java.io.IOException;
//
//public class GrantedAuthoritySerializer extends JsonSerializer<GrantedAuthority> {
//    @Override
//    public void serialize(GrantedAuthority value, JsonGenerator gen, SerializerProvider provider) throws IOException {
//        gen.writeString(value.getAuthority());
//    }
//}
